import { createApp, } from 'vue'
import App from './App.vue'
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
import routes from './router/router'
import store from './store/index';
import './assets/css/style.less';
import './assets/css/iconfont.css';
import { createRouterGuard } from './router/routeGuard'
import {MyIcon} from './utils/icon';
import zCrud from './components/z-crud.vue'



(async () => {
    const app: any = createApp(App);
    app.component('MyIcon',MyIcon)
    app.component('z-crud',zCrud)
    app.use(store);
    app.use(routes);
    createRouterGuard(routes)
    app.use(Antd);
    await routes.isReady();
    app.mount('#app');
})()